import request from '@/utils/request'

// 查询款式列表
export function list(data) {
  return request({
    url: '/system/fashion/list',
    method: 'post',
    data: data
  })
}
// 添加款式
export function add(data) {
  return request({
    url: '/system/fashion/add',
    method: 'post',
    data: data
  })
}
// 修改款式
export function edit(data) {
  return request({
    url: '/system/fashion/edit',
    method: 'post',
    data: data
  })
}
// 删除款式
export function remove(id) {
  return request({
    url: '/system/fashion/remove',
    method: 'post',
    data: {
      id: id
    }
  })
}
// 查询款式工价列表
export function fashionWagesList(data) {
  return request({
    url: '/system/fashion/wages/list',
    method: 'post',
    data: data
  })
}

// 添加款式工价
export function addfashionWages(data) {
  return request({
    url: '/system/fashion/wages/add',
    method: 'post',
    data: data
  })
}
// 修改款式工价
export function editfashionWages(data) {
  return request({
    url: '/system/fashion/wages/edit',
    method: 'post',
    data: data
  })
}
// 删除款式工价
export function removefashionWages(id) {
  return request({
    url: '/system/fashion/wages/remove',
    method: 'post',
    data: {
      id: id
    }
  })
}
// 查询款式尺码列表
export function fashionSizeList(data) {
  return request({
    url: '/system/fashion/size/list',
    method: 'post',
    data: data
  })
}
// 新增款式尺码列表
export function addfashionSize(data) {
  return request({
    url: '/system/fashion/size/add',
    method: 'post',
    data: data
  })
}
// 修改款式尺码列表
export function editfashionSize(data) {
  return request({
    url: '/system/fashion/size/edit',
    method: 'post',
    data: data
  })
}
// 删除款式尺码
export function removefashionSize(id) {
  return request({
    url: '/system/fashion/size/remove',
    method: 'post',
    data: {
      id: id
    }
  })
}
// 查询款式成本列表
export function fashionCostList(data) {
  return request({
    url: '/system/fashion/cost/list',
    method: 'post',
    data: data
  })
}
// 添加款式成本
export function addfashionCost(data) {
  return request({
    url: '/system/fashion/cost/add',
    method: 'post',
    data: data
  })
}
// 修改款式成本
export function editfashionCost(data) {
  return request({
    url: '/system/fashion/cost/edit',
    method: 'post',
    data: data
  })
}
// 删除款式成本
export function removefashionCost(id) {
  return request({
    url: '/system/fashion/cost/remove',
    method: 'post',
    data: {
      id: id
    }
  })
}
// 查询款式零售价列表
export function fashionRetailList(data) {
  return request({
    url: '/system/fashion/retail/list',
    method: 'post',
    data: data
  })
}
// 查询物料列表
export function materialList(data) {
  return request({
    url: '/system/material/list',
    method: 'post',
    data: data
  })
}
// 款式面料编辑
export function fashionEdit(data) {
  return request({
    url: '/system/fashion/fabric/edit',
    method: 'post',
    data: data
  })
}
// 款式系数编辑
export function rateEdit(data) {
  return request({
    url: '/system/fashion/rate/edit',
    method: 'post',
    data: data
  })
}
// 款式面料删除
export function fashionRemove(id) {
  return request({
    url: '/system/fashion/fabric/remove',
    method: 'post',
    data: {
      id: id
    }
  })
}
// 绑定面料列表
export function materialSelList(data) {
  return request({
    url: '/system/material/sel/list',
    method: 'post',
    data: data
  })
}